package com.itgy.apiclientsdk;

import com.itgy.apiclientsdk.client.ApiClient;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;


@Configuration
@ConfigurationProperties("api.client")
@Data
@ComponentScan
public class APIClientConfig {

    private String accessKey;

    private String secretKey;

    @Bean
    public ApiClient gyApiClient()
    {
        ApiClient apiClient = new ApiClient(secretKey,accessKey);
        return apiClient;
    }
}
